package ru.ifmo.ipimenov.ewf_svn.standalone.model;

import org.apache.commons.logging.LogFactory;
import org.apache.commons.logging.Log;
import ru.ifmo.ipimenov.ewf_svn.standalone.model.db.User;

/**
 * @author: Ilya Pimenov
 * Scartel Starlab company
 */
public class UserProvider {
    /**
     * Logger for all purposes
     */
    private static Log log = LogFactory.getLog(UserProvider.class);

    private User user = null;

    private static UserProvider instance = null;

    @Deprecated
    public static String[] getUrls(){
        return new String[]{"http://ewf.googlecode.com/svn/trunk/data/4test"};
    }

    public User getUser(){
        return user;
    }

    public static UserProvider getInstance(){
        return instance;
    }

    private UserProvider(User u){
        this.user = u;
    }

    public static void init(User u){
        instance = new UserProvider(u);
    }

}
